/*
 * Copyright 2014 Semidata. All rights reserved.
 */
package com.semidata.rtd.engine.job;

/**
 * @author shewei@semidata.com, She Wei
 * 
 */
public abstract class AbstractTask implements Task {

	private Job job;
	private long timeout;

	public AbstractTask(Job job, long timeout) {
		this.job = job;
		this.timeout = timeout;
	}

	public Job getJob() {
		return job;
	}

	@Override
	public void beforeExecution() {
	}

	@Override
	public long getTimeout() {
		return timeout;
	}
}
